package chixing.day04;

public class PersonTest {
    public static void main(String[] args) {
        Person p1 = new Person("qqq",25,1,false);
        Person p2 = new Person("www",32,0,false);
        Person p3 = new Person("eee",23,1,true);

        boolean p12 = p1.canMarry(p2);
        boolean p11 = p1.canMarry(p1);
        boolean p111 = p1.canMarry(null);
        boolean p13 = p1.canMarry(p3);


        System.out.println(p12);
        System.out.println(p11);
        System.out.println(p111);
        System.out.println(p13);

    }
}
